BEGIN CATCH
    ROLLBACK TRANSACTION;
    DECLARE @ErrorMessage NVARCHAR(4000) = ERROR_MESSAGE();
    INSERT INTO ErrorLog (Message, ErrorTime) 
    VALUES (@ErrorMessage, GETDATE());
    RAISERROR(@ErrorMessage, 16, 1);  -- 抛出错误‌:ml-citation{ref="3,5" data="citationList"}
END CATCH;
